package com.example.administrator.shzs.ui;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;
import com.example.administrator.shzs.R;
import com.example.administrator.shzs.activity.BaseActivity;
import com.example.administrator.shzs.app.MyApplication;
import butterknife.Bind;
import butterknife.ButterKnife;

/**
 * 关于
 */
public class AboutActivity extends BaseActivity {

    @Bind(R.id.web_view)
    WebView webView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        ButterKnife.bind(this);
        MyApplication.app.activityList.add(this);
        loadWeb();

    }

    private void loadWeb() {
        webView.loadUrl("file:///android_asset/about/index.html");
        WebSettings settings=webView.getSettings();
        settings.setJavaScriptEnabled(true);
        webView.setWebViewClient(new WebViewClient());
    }
}
